package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.ThankMoneyEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;

/**
 * 答谢金额表对象 thank_money
 *
 * @author ym
 * @date 2020-09-02
 */
@ApiModel("答谢金额表-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ThankMoneyUpdateParam extends BeanCovert<ThankMoneyEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("答谢项名称")
    @Size(max = 20, message = "答谢项名称长度超过{max}", groups = {Add.class, Update.class})
    private String thankName;

    @ApiModelProperty("答谢项金额")
    @NotNull
    private Double thankMoney;

    @ApiModelProperty("答谢项类型 (01-标准金额 02-自定义金额)")
    @Size(max = 2, message = "答谢项类型 长度超过{max}", groups = {Add.class, Update.class})
    private String thankType;

}
